Optimal. Leaf size=75 \[ \frac {a}{b (b c-a d) n \left (a+b x^n\right )}+\frac {c \log \left (a+b x^n\right )}{(b c-a d)^2 n}-\frac {c \log \left (c+d x^n\right )}{(b c-a d)^2 n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {457, 78}
\begin {gather*} \frac {a}{b n (b c-a d) \left (a+b x^n\right )}+\frac {c \log \left (a+b x^n\right )}{n (b c-a d)^2}-\frac {c \log \left (c+d x^n\right )}{n (b c-a d)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 457
Rubi steps
\begin {align*} \int \frac {x^{-1+2 n}}{\left (a+b x^n\right )^2 \left (c+d x^n\right )} \, dx &=\frac {\text {Subst}\left (\int \frac {x}{(a+b x)^2 (c+d x)} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \left (-\frac {a}{(b c-a d) (a+b x)^2}+\frac {b c}{(b c-a d)^2 (a+b x)}-\frac {c d}{(b c-a d)^2 (c+d x)}\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {a}{b (b c-a d) n \left (a+b x^n\right )}+\frac {c \log \left (a+b x^n\right )}{(b c-a d)^2 n}-\frac {c \log \left (c+d x^n\right )}{(b c-a d)^2 n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 75, normalized size = 1.00 \begin {gather*} \frac {a}{b (b c-a d) n \left (a+b x^n\right )}+\frac {c \log \left (a+b x^n\right )}{(b c-a d)^2 n}-\frac {c \log \left (c+d x^n\right )}{(b c-a d)^2 n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 107, normalized size = 1.43
method | result | size |
risch | \(-\frac {a}{\left (a d -b c \right ) b n \left (a +b \,x^{n}\right )}-\frac {c \ln \left (x^{n}+\frac {c}{d}\right )}{n \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}+\frac {c \ln \left (x^{n}+\frac {a}{b}\right )}{n \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}\) | \(107\) |
norman | \(\frac {{\mathrm e}^{n \ln \left (x \right )}}{\left (a d -b c \right ) n \left (a +b \,{\mathrm e}^{n \ln \left (x \right )}\right )}+\frac {c \ln \left (a +b \,{\mathrm e}^{n \ln \left (x \right )}\right )}{n \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}-\frac {c \ln \left (c +d \,{\mathrm e}^{n \ln \left (x \right )}\right )}{n \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}\) | \(109\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 121, normalized size = 1.61 \begin {gather*} \frac {c \log \left (\frac {b x^{n} + a}{b}\right )}{b^{2} c^{2} n - 2 \, a b c d n + a^{2} d^{2} n} - \frac {c \log \left (\frac {d x^{n} + c}{d}\right )}{b^{2} c^{2} n - 2 \, a b c d n + a^{2} d^{2} n} + \frac {a}{a b^{2} c n - a^{2} b d n + {\left (b^{3} c n - a b^{2} d n\right )} x^{n}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.53, size = 120, normalized size = 1.60 \begin {gather*} \frac {a b c - a^{2} d + {\left (b^{2} c x^{n} + a b c\right )} \log \left (b x^{n} + a\right ) - {\left (b^{2} c x^{n} + a b c\right )} \log \left (d x^{n} + c\right )}{{\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2}\right )} n x^{n} + {\left (a b^{3} c^{2} - 2 \, a^{2} b^{2} c d + a^{3} b d^{2}\right )} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^{2\,n-1}}{{\left (a+b\,x^n\right )}^2\,\left (c+d\,x^n\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________